<?php
namespace  app\common\model;

use think\Db;
use think\Model;

class Team extends BaseModel
{
    
    public function  user(){
        return $this->hasOne('Admin','id','user_id')->field('id,username,nickname,role_id');
    }

    public function  project(){
        return $this->hasOne('Project','id','project_id')->field('id,title,price');
    }
    
}